@extends('layouts.web')

@section('title', $col->title.'_'.env('APP_NAME').' - 我们只推荐好网站')
@section('keywords', '网站目录,免费网站目录,分类目录,网站分类目录')
@section('description', env('APP_NAME').'网站目录是全人工编辑的开放式网站分类目录，收录国内外、各行业优秀网站，免费网站目录,网站分类目录, 网站提交入口。旨在为用户提供优秀网站目录检索、网站推广服务。')

@section('content')
    <div class="main-container">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md8">
                <div class="layui-card">
                    @if($son_list)
                        <div class="min-nav min-list-nav layui-hide-xs">
                            <ul>
                                @foreach($son_list as $v)
                                    @if(isset($son))
                                        <li @if($v->id == $son)) class="hover" @endif>
                                            <a href="{{ url('/site/'.$v->id.'/son/'.$nav_id) }}/">{{ $v->title }}</a>
                                        </li>
                                    @else
                                        <li>
                                            <a href="{{ url('/site/'.$v->id.'/son/'.$nav_id) }}/">{{ $v->title }}</a>
                                        </li>
                                    @endif
                                @endforeach
                            </ul>
                        </div>
                    @endif
                    <div class="layui-card-header">{{ $col->title }}排行榜</div>
                    <div class="layui-card-body site-list-body">
                        @if(isset($sites))
                            @foreach($sites as $v)
                                <div class="site-list clearfix">
                                    <div class="siteImg">
                                        <a href="{{ url('/siteinfo-'.$v->id.'.html') }}" title="{{ $v->name }}">
                                            <img class="load" alt="{{ $v->name }}" src="{{ env('IMG_URL') }}/files/loading.gif" lay-src="{{ hostStr('shot/'.$v->url.'.jpg') }}">
                                        </a>
                                    </div>
                                    <div class="siteContent">
                                        <h3 class="title">
                                            <a href="{{ url('/siteinfo-'.$v->id.'.html') }}" title="{{ $v->name }}">{{ $v->name }}</a>
                                            <span>{{ $v->url }}</span>
                                        </h3>
                                        <div class="siteData clearfix">
                                            <p class="layui-hide-xs">Alexa：{{ $v->content['alexa'] }}</p>
                                            <p>
                                                <span>
                                                    <img src="{{ url('img/br-bg.png') }}">
                                                    <em>{{ $v->content['br'] }}</em>
                                                </span>
                                            </p>
                                            <p>
                                                <span>
                                                    <img src="{{ url('img/mbr-bg.png') }}">
                                                    <em>{{ $v->content['mbr'] }}</em>
                                                </span>
                                            </p>
                                            <p>
                                                <span>
                                                    <img src="{{ url('img/sbr-bg.png') }}">
                                                    <em>{{ $v->content['sbr'] }}</em>
                                                </span>
                                            </p>
                                            <p>
                                                <span>
                                                    <img src="{{ url('img/pr-bg.png') }}">
                                                    <em>{{ $v->content['pr'] }}</em>
                                                </span>
                                            </p>
                                        </div>
                                        <p class="description layui-hide-xs">{{ str_limit($v->description,120,'……') }}</p>
                                    </div>
                                    <div class="r-views layui-hide-xs">
                                        <strong>热度</strong>
                                        <span>{{ $v->views }}</span>
                                    </div>
                                </div>
                            @endforeach
                            {{ $sites->links('vendor.pagination.default', ['data' => $sites]) }}
                        @endif
                    </div>
                </div>
            </div>
            <div class="layui-col-md4">
                @include('layouts.right')
            </div>
        </div>
    </div>
@endsection


